/*
 * @Author: thl t15945324431@163.com
 * @Date: 2024-05-13 16:26:23
 * @LastEditors: thl t15945324431@163.com
 * @LastEditTime: 2024-05-13 17:08:15
 * @FilePath: \cw_web\gl\src\store\data.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { getStorage, setStorage, clearStorage } from "./storage";

export default {
    // 用户信息
    userInfo: getStorage("user") || null,
    menus: sessionStorage.getItem("menus") || [], //权限配置菜单
    ident: sessionStorage.getItem("ident") || '',
    manualLoad: false, //手动控制loding遮罩开关
    setStorage,
    clearStorage,
    searchValue: sessionStorage.getItem("searchValue") ? JSON.parse(sessionStorage.getItem("searchValue")) : null,
    pageTabValue: sessionStorage.getItem("pageTabValue") ? JSON.parse(sessionStorage.getItem("pageTabValue")) : null,
    tableScrollTop: 0,
    dataSource: sessionStorage.getItem("dataSource") ? JSON.parse(sessionStorage.getItem("dataSource")) : null,
    pageActionTime:process.env.NODE_ENV === 'development'? 30 : 120 * 60 * 1000
};
